package com.itheima.service;


import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {
    public User findByUsername(String username);

    PageResult pageQuery(QueryPageBean queryPageBean);

    User findUserById(Integer id);

    List<Integer> findRoleById(Integer id);

    void editUser(Integer[] roleIds, User user)throws Exception;


    void addUser(Integer[] roleIds, User user);


    PageResult findPage(QueryPageBean queryPageBean);

    void delete(Integer id);
}
